package exercise7;
import javax.swing.JOptionPane;
public class Letters {
	public int countLetters(String s) {
		int count = 0;
		for (char ch : s.toCharArray()) {
		if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
				count++;
		}
		return count;
	}
		
}
